import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询礼品主数据列表
export const searchGiftInfos = params => axios.get(`${SERVER.MEMBERS_CLUB}/gift/gift/searchGiftInfos`, {
  params
});

// 保存礼品主数据
export const saveGiftInfo = params => axios.post(`${SERVER.MEMBERS_CLUB}/gift/gift/saveGiftInfo`, params);

// 查询入库礼品单
export const giftInStock = params => axios.get(`${SERVER.MEMBERS_CLUB}/gift/gift/giftInStock`, params);

// 编辑页面获得礼品主数据
export const getGiftInfoById = params => axios.get(`${SERVER.MEMBERS_CLUB}/gift/gift/getGiftInfoById`, {
  params
});

// 获取所有品牌
// export const getBrandAll = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/basedata/vehicleProduct/brandsqueryall`, {});
// 获取包装单位
// export const queryPackUnit = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/partInfos/partGroupCode`, {});
// 获取包装单位
// export const partExport = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/partInfos/export`, { params });

// 停用启用
// export const updateStatus = params => axios.put(`${SERVER.MEMBERS_CLUB}/gift/gift/changeStatus`, params);
